package com.dmbjz.openApi.controller;


import com.dmbjz.openApi.entity.Person;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

@Tag(name = "地址管理", description = "管理地址信息")
@RestController
@RequestMapping("/address")
public class AddressController {


    @Operation(summary = "获取", description = "get操作")
    @GetMapping("get")
    public String getName() {
        return "天安门广场";
    }

    @Operation(summary = "删除", description = "del操作")
    @DeleteMapping("delete")
    public String delete() {
        return "删除成功";
    }


    @DeleteMapping("delete2")
    public String delete2() {
        return "删除成功2";
    }

}
